<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>几个注意点</title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="root">
			<school></school>
		</div>
		<script type="text/javascript">
			Vue.config.productionTip = false
			const school = Vue.extend({
				template:`
					<div>
						<h2>学校名称:{{name}}</h2>
						<h2>学校地址:{{address}}</h2>
					</div>
				`,
				data(){
					return {
						name:"尚硅谷",
						address:"北京"
					}
				}
			})
			new Vue({
				el:"#root",
				components:{
					school:school
				}
			})
		</script>
	</body>
</html>
